$(document).ready(function(){
	function loadTermin() {
	alert('yes');
			var oldScrollHeight = $("#termin_Box").attr("scrollHeight") - 20;
			$.ajax({
				url: "select_termin.php",
				cache: false,
				success: function(html) {
					$("#termin_Box").html(html);
					var newscrollHeight = $("#termin_Box").attr("scrollHeight") - 20;
					if(newscrollHeight>oldScrollHeight) {
						$("#termin_Box").animate({ scrollTop: newscrollHeight}, 'normal');
					}
				}
			});
			
		}
		
		setInterval(loadLog, 500);
});